<?php
// add_filter('wpjam_basic_sub_pages', 'wpjam_basic_add_mobile_theme_sub_page');
function wpjam_basic_add_mobile_theme_sub_page($subs){
	$subs['mobile-theme']	= array('menu_title'=>'移动主题', 	'function'=>'option');
	return $subs;
}

// add_filter('wpjam_settings', 'wpjam_mobile_theme_settings');
function wpjam_mobile_theme_settings($wpjam_settings){
	
	$themes = wp_get_themes();

	

	$wp_themes = array();

	foreach ( $themes as $theme ) {
		$name = $theme->get('Name');
		if ( isset( $wp_themes[ $name ] ) )
			$wp_themes[ $name . '/' . $theme->get_stylesheet() ] = $theme;
		else
			$wp_themes[ $name ] = $theme;
	}

	wpjam_print_r($wp_themes);


	$sections	= array();
	
	// $sections['mobile-theme'] = array(
	// 	'title'=>'', 	
	// 	'fields'=>array(
	// 		'holidays_'	=> array('title'=>'节假日',	'type'=>'mu-text',	'description'=>'请填入国家法定节假日或者其他节假日。')
	// 	) 
	// );
	

	// $wpjam_settings['mobile-theme']	= array('sections'	=>	$sections);

	return $wpjam_settings;
}